﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="Site2.master" CodeBehind="Details.aspx" Inherits= "Prototype1.Details"%>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" BackColor="#CCCCCC" 
            BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" CellPadding="4" 
            CellSpacing="2" DataKeyNames="ID" DataSourceID="SqlDataSource1" 
            ForeColor="Black" Width="815px" style="margin-left: 0px; margin-top: 44px">
            <Columns>
                <asp:BoundField DataField="Robot_Name" HeaderText="Robot_Name" 
                    SortExpression="Robot_Name" />
                <asp:ImageField DataImageUrlField="Picture" HeaderText="Mug Shot">
                    <ControlStyle CssClass="picSizer" />
                </asp:ImageField>
                <asp:BoundField DataField="Robot_Description" HeaderText="Robot_Description" 
                    SortExpression="Robot_Description" />
                <asp:BoundField DataField="Weapons" HeaderText="Weapons" 
                    SortExpression="Weapons" />
            </Columns>
            <FooterStyle BackColor="#CCCCCC" />
            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
            <RowStyle BackColor="White" />
            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#808080" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#383838" />
        </asp:GridView>
        <br />
    </p>
    <p>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
            SelectCommand="SELECT [Robot Description] AS Robot_Description, [Weapons], [Picture], [Robot Name] AS Robot_Name, [ID] FROM [Table1] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
</asp:Content>
